#ifndef __UART_H_
#define __UART_H_


extern void uart1_recv_time_check(void);
extern bool_t uart1_recv_event(void);
extern void clr_uart1_recv_event(void);

extern uint8_t uart_ringbuffer_tx_read(uint8_t port, uint8_t  *c);
extern void    uart_ringbuffer_rx_write(uint8_t port, uint8_t c);

extern void    uart_ringbuffer_init(void);

extern void    uart1_puts(uint8_t *s, uint8_t num);
extern uint8_t uart1_getc(uint8_t *c);
extern uint8_t uart1_gets(uint8_t *s);

void set_uart1_recv_counter(uint8_t num);
void set_uart1_recv_start_flag(uint8_t status);
#endif